package lesson22.Task01;

public class Quadrilateral implements IFigure
{
	private final int angleAlfa;
	private final int angleBeta;
	private final int angleGama;
	private final int angleDelta;
	private final double sideA;
	private final double sideB;
	private final double sideC;
	private final double sideD;
	private final double perimeter;
	private double square;
	
	public Quadrilateral(final double a, final double b, final double c, final double d, final int alfa, final int beta, final int gama, final int delta) throws Exception
	{
		if(a <=0 || b <= 0 || c<= 0 || d <= 0 || alfa <0 || alfa >360 || beta < 0 || beta > 360 || gama < 0 || gama > 360 || delta < 0 || delta > 360)
		{
			throw new Exception();
		}
		this.sideA = a;
		this.sideB = b;
		this.sideC = c;
		this.sideD = d;
		this.angleAlfa = alfa;
		this.angleBeta = beta;
		this.angleGama = gama;
		this.angleDelta = delta;
		this.perimeter = sideA + sideB + sideC + sideD;
	}
	@Override
	public double calculateSquare()
	{
		
		return 0;
	}
	@Override
	public final double calculatePerimeter() 
	{
		return perimeter;
	}
	
	
}
